<template>
  <div class="header">
      <div class="my">
    <img src="../assets/icon/向左返回.svg"  @click='goback'/>
      <p >设置</p>
   </div>

    <ul class="callMe">
      <router-link to="/personal"><li>账号信息 <span class="right" @click='goAlert'><img src="../assets/icon/向右箭头.svg" alt=""></span></li></router-link>
      <li>设置登陆密码 <span class="right" @click='goAlert'><img src="../assets/icon/向右箭头.svg" alt=""></span></li>
      <li>支付设置 <span class="right" @click='goAlert'><img src="../assets/icon/向右箭头.svg" alt=""></span></li>
    </ul>
  <router-link to="/login"><p class="footer">退出登陆</p></router-link>
  <router-view/>
  </div>
</template>
<style lang="scss" scoped>
.header {
  font-size: 16px;
  .my {
    line-height: 30px;
    height: 30px;
    display: flex;
    border-bottom: 1px solid rgb(243, 241, 241);
    img {
      width: 20px;
      margin-left: 5px;
    }
    p {
      margin: 0 auto;
    }
  }
  .lihuacong{
      width: 40%;
      margin: 0 auto;
      text-align: center;
      margin-top: 50px;
      img{
          width: 50px;
      }
  }
  .callMe{
      width: 90%;
      margin: 0 auto;
      li{
          height: 40px;
          line-height: 40px;
          border-bottom:1px solid rgb(214, 210, 210);
          span{
              margin-left: 20px;
              font-size: 14px;
          }
      }
      .right{
          float: right;
          color: #477EF0;
          img{
            width: 15px;
          }
      }
  }
  .footer{
  
    width: 90%;
    height: 40px;
    background-color: #367bf1;
    margin: 0 auto;
    text-align: center;
    line-height: 40px;
    color: white;
    margin-top: 25px;
  }
}
</style>
<script>
export default {
    methods:{
        goback(){
            this.$router.go(-1)
        },
        goAlert(){
            alert('已经复制在剪切板')
        }
    }
}
</script>